package org.example.completed.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.completed.domain.Comment;
import org.example.completed.model.dto.CommentAndAvatarDTO;

import java.util.List;

public interface CommentService extends IService<Comment> {

    // 获取所有评论
    List<Comment> getAllComments();

    // 添加评论
    void addComment(Comment comment);

    CommentAndAvatarDTO getCommentsByUsernameWithAvatar(String username);
}